/*
 * @Author: 肉蛋葱鸡 774707331@qq.com
 * @Date: 2025-02-26 22:36:57
 * @LastEditors: 肉蛋葱鸡 774707331@qq.com
 * @LastEditTime: 2025-02-27 00:00:18
 * @FilePath: /my-vue3-project/src/plugin/uploadPic.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default function uploadPicPlugin(uploadPic) {
    console.log(uploadPic);
    return {
        actions: [
            {
                title: '图片',
                icon: ` <svg t="1719248469954" class="icon-symbol" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4377">
                <path d="M96 128h832v96H96zM96 576h832v96H96zM224 352h576v96H224zM224 800h576v96H224z" p-id="4378"></path>
            </svg>`,
                handler: {
                    type: 'action',
                    click: (ctx) => {
                        console.log(ctx)
                        uploadPic()
                    },
                },
            }]
    }
}
